.class Lcn/sharesdk/onekeyshare/EditPage$2;
.super Ljava/lang/Thread;
.source "EditPage.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcn/sharesdk/onekeyshare/EditPage;->initPageView()V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcn/sharesdk/onekeyshare/EditPage;

.field final synthetic val$llInput:Landroid/widget/LinearLayout;


# direct methods
.method constructor <init>(Lcn/sharesdk/onekeyshare/EditPage;Landroid/widget/LinearLayout;)V
    .registers 3
    .param p1, "this$0"    # Lcn/sharesdk/onekeyshare/EditPage;

    .prologue
    .line 286
    iput-object p1, p0, Lcn/sharesdk/onekeyshare/EditPage$2;->this$0:Lcn/sharesdk/onekeyshare/EditPage;

    iput-object p2, p0, Lcn/sharesdk/onekeyshare/EditPage$2;->val$llInput:Landroid/widget/LinearLayout;

    invoke-direct {p0}, Ljava/lang/Thread;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .registers 6

    .prologue
    .line 288
    iget-object v3, p0, Lcn/sharesdk/onekeyshare/EditPage$2;->this$0:Lcn/sharesdk/onekeyshare/EditPage;

    # getter for: Lcn/sharesdk/onekeyshare/EditPage;->reqData:Ljava/util/HashMap;
    invoke-static {v3}, Lcn/sharesdk/onekeyshare/EditPage;->access$300(Lcn/sharesdk/onekeyshare/EditPage;)Ljava/util/HashMap;

    move-result-object v3

    const-string v4, "imageUrl"

    invoke-virtual {v3, v4}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v3

    invoke-static {v3}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v0

    .line 290
    .local v0, "imageUrl":Ljava/lang/String;
    :try_start_10
    iget-object v3, p0, Lcn/sharesdk/onekeyshare/EditPage$2;->this$0:Lcn/sharesdk/onekeyshare/EditPage;

    const/4 v4, 0x1

    # setter for: Lcn/sharesdk/onekeyshare/EditPage;->shareImage:Z
    invoke-static {v3, v4}, Lcn/sharesdk/onekeyshare/EditPage;->access$402(Lcn/sharesdk/onekeyshare/EditPage;Z)Z

    .line 291
    iget-object v3, p0, Lcn/sharesdk/onekeyshare/EditPage$2;->this$0:Lcn/sharesdk/onekeyshare/EditPage;

    iget-object v4, p0, Lcn/sharesdk/onekeyshare/EditPage$2;->this$0:Lcn/sharesdk/onekeyshare/EditPage;

    # getter for: Lcn/sharesdk/onekeyshare/EditPage;->activity:Landroid/app/Activity;
    invoke-static {v4}, Lcn/sharesdk/onekeyshare/EditPage;->access$600(Lcn/sharesdk/onekeyshare/EditPage;)Landroid/app/Activity;

    move-result-object v4

    invoke-static {v4, v0}, Lcn/sharesdk/framework/utils/R;->getBitmap(Landroid/content/Context;Ljava/lang/String;)Landroid/graphics/Bitmap;

    move-result-object v4

    # setter for: Lcn/sharesdk/onekeyshare/EditPage;->image:Landroid/graphics/Bitmap;
    invoke-static {v3, v4}, Lcn/sharesdk/onekeyshare/EditPage;->access$502(Lcn/sharesdk/onekeyshare/EditPage;Landroid/graphics/Bitmap;)Landroid/graphics/Bitmap;
    :try_end_25
    .catch Ljava/lang/Throwable; {:try_start_10 .. :try_end_25} :catch_4b

    .line 298
    :goto_25
    iget-object v3, p0, Lcn/sharesdk/onekeyshare/EditPage$2;->this$0:Lcn/sharesdk/onekeyshare/EditPage;

    # getter for: Lcn/sharesdk/onekeyshare/EditPage;->image:Landroid/graphics/Bitmap;
    invoke-static {v3}, Lcn/sharesdk/onekeyshare/EditPage;->access$500(Lcn/sharesdk/onekeyshare/EditPage;)Landroid/graphics/Bitmap;

    move-result-object v3

    if-eqz v3, :cond_4a

    iget-object v3, p0, Lcn/sharesdk/onekeyshare/EditPage$2;->this$0:Lcn/sharesdk/onekeyshare/EditPage;

    # getter for: Lcn/sharesdk/onekeyshare/EditPage;->image:Landroid/graphics/Bitmap;
    invoke-static {v3}, Lcn/sharesdk/onekeyshare/EditPage;->access$500(Lcn/sharesdk/onekeyshare/EditPage;)Landroid/graphics/Bitmap;

    move-result-object v3

    invoke-virtual {v3}, Landroid/graphics/Bitmap;->isRecycled()Z

    move-result v3

    if-nez v3, :cond_4a

    .line 299
    new-instance v1, Landroid/os/Message;

    invoke-direct {v1}, Landroid/os/Message;-><init>()V

    .line 300
    .local v1, "msg":Landroid/os/Message;
    const/4 v3, 0x2

    iput v3, v1, Landroid/os/Message;->what:I

    .line 301
    iget-object v3, p0, Lcn/sharesdk/onekeyshare/EditPage$2;->val$llInput:Landroid/widget/LinearLayout;

    iput-object v3, v1, Landroid/os/Message;->obj:Ljava/lang/Object;

    .line 302
    iget-object v3, p0, Lcn/sharesdk/onekeyshare/EditPage$2;->this$0:Lcn/sharesdk/onekeyshare/EditPage;

    invoke-static {v1, v3}, Lcn/sharesdk/framework/utils/UIHandler;->sendMessage(Landroid/os/Message;Landroid/os/Handler$Callback;)Z

    .line 304
    .end local v1    # "msg":Landroid/os/Message;
    :cond_4a
    return-void

    .line 292
    :catch_4b
    move-exception v2

    .line 293
    .local v2, "t":Ljava/lang/Throwable;
    invoke-virtual {v2}, Ljava/lang/Throwable;->printStackTrace()V

    .line 294
    iget-object v3, p0, Lcn/sharesdk/onekeyshare/EditPage$2;->this$0:Lcn/sharesdk/onekeyshare/EditPage;

    const/4 v4, 0x0

    # setter for: Lcn/sharesdk/onekeyshare/EditPage;->shareImage:Z
    invoke-static {v3, v4}, Lcn/sharesdk/onekeyshare/EditPage;->access$402(Lcn/sharesdk/onekeyshare/EditPage;Z)Z

    .line 295
    iget-object v3, p0, Lcn/sharesdk/onekeyshare/EditPage$2;->this$0:Lcn/sharesdk/onekeyshare/EditPage;

    const/4 v4, 0x0

    # setter for: Lcn/sharesdk/onekeyshare/EditPage;->image:Landroid/graphics/Bitmap;
    invoke-static {v3, v4}, Lcn/sharesdk/onekeyshare/EditPage;->access$502(Lcn/sharesdk/onekeyshare/EditPage;Landroid/graphics/Bitmap;)Landroid/graphics/Bitmap;

    goto :goto_25
.end method
